package com.xunqi.sell.pojo.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * @author Jerry
 */
@Mapper
public interface ProductCategoryMapper {

    /**
     *  新增方法
     * @param map
     * @return
     */
    @Insert("INSERT INTO product_category (category_name,category_type) VALUES (#{category_name,jdbcType=VARCHAR},#{category_type,jdbcType=INTEGER})")
    int insertByMap(Map<String,Object> map);

}
